package com.xjy.headfirst.装饰者模式;

/**
 * @author :辛纪元
 * @date :2022-06-09 19:26
 * @description:
 */

public class Espresso extends Beverage{

    @Override
    public void setSize(int size) {
        this.size = size;
    }

    public Espresso(){
        description = "Espresso";
    }

    @Override
    public double cost() {
        return 1.9;
    }
}
